{template 'header'}
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">

                <div class="panel-body">
                    <form id="form" action="{php echo webUrl('user/role/add')}" method="post" enctype="multipart/form-data" class="form-horizontal ">
                        <div class="form-group">
                            <label class="col-md-2 control-label" for="text-input">角色 </label>
                            <div class="col-md-8">
                                <input type="text" id="text-input" value="{$item['rolename']}" name="rolename" class="form-control" placeholder="">
                                <input type="hidden" name="id" value="{$id}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label" for="text-input">状态 </label>
                            <div style="padding-top: 7px" class="col-md-8">
                                <label class="switch switch-primary">
                                    <input type="checkbox" name="status" value="1" class="switch-input" {if $item['status']==1} checked{/if}>
                                    <span class="switch-label" data-on="On" data-off="Off"></span>
                                    <span class="switch-handle"></span>
                                </label>
                            </div>
                        </div>
                        {template 'permission'}
                        <br>
                </div>
                <div class="panel-footer">
                    <button type="submit" class="btn btn-sm btn-success"><i class="fa fa-dot-circle-o"></i> 保存</button>
                    <button type="reset" class="btn btn-sm btn-danger"><i class="fa fa-ban"></i> 撤销</button>
                </div>
                </form>
            </div>

            </div>
    </div><!--/.row-->
{template 'footer'}